import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:wangziyi/pages/app_all/view.dart';
import 'package:wangziyi/pages/app_home/app_home_view.dart';
import 'package:wangziyi/pages/app_my/app_my_view.dart';
import 'package:wangziyi/pages/app_shopping_cart/app_shopping_cart_view.dart';
import 'package:wangziyi/widget/navigation_icon_view.dart';

class HomeState {
  List appBarTitle = ['首页', '分类', '购物车', '我的'];
  List<NavigationIconView> navigationIconViews;
  RxInt currentIndex = 0.obs;
  List<Widget> pages;
  HomeState() {
    navigationIconViews = [
      NavigationIconView(
          title: appBarTitle[0],
          iconPath: 'assets/images/home.png',
          activeIconPath: 'assets/images/home-fill.png'),
      NavigationIconView(
          title: appBarTitle[1],
          iconPath: 'assets/images/all.png',
          activeIconPath: 'assets/images/all-fill.png'),
      NavigationIconView(
          title: appBarTitle[2],
          iconPath: 'assets/images/cart-Empty.png',
          activeIconPath: 'assets/images/cart-Empty-fill.png'),
      NavigationIconView(
          title: appBarTitle[3],
          iconPath: 'assets/images/Customer management.png',
          activeIconPath: 'assets/images/Customer management-fill.png'),
    ];

    pages = [
      AppHomePage(),
      AppAllPage(),
      AppShoppingCartPage(),
      AppMyPage()
    ];
  }
}
